<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <?php echo $this->Html->script("vendor/jquery-1.9.1.min.js") ?>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title><?php echo $this->fetch('title_for_layout') ?> | Thiago Thomaz</title>
        <meta name="description" content=<?php echo '"' . $this->fetch('description_for_layout') . '"' ?>>
        
        <meta property="og:locale" content="pt_BR">
        <meta property="og:description" content=<?php echo '"' . $this->fetch('description_for_layout') . '"' ?>>
        <meta property="og:url" content="">
        <meta property="og:type" content=<?php echo '"' . $this->fetch('type') . '"' ?>>
        <meta property="og:site_name" content="Thiago Thomaz">
        
        <meta name="viewport" content="width=device-width">
        <style>
            body {
                padding-top: 50px;
            }
        </style>
        <?php echo $this->Html->css('bootstrap.css') ?>

        <?php //echo $this->Html->css('bootstrap-responsive.css')?>
        <?php echo $this->Html->css('main.css') ?>
        <?php echo $this->Html->script('thiagothomaz.js') ?>
        <?php echo $this->Html->script('vendor/modernizr-2.6.2-respond-1.1.0.min.js') ?>		

    </head>
    <body>
        <!--[if lt IE 7]>
                <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
        <![endif]-->
        <header>
            <?php echo $this->NavVertical->nav_vertical(); ?>
        </header>
        <section class="container">
            <?php echo $this->Session->flash(); ?>

            <?php echo $this->fetch('content'); ?>

            <div class="fb-like" data-href="http://thiagothomaz.com/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="true" data-font="arial"></div>
            <hr>

            <?php
            if ($this->fetch('referencia_bibliografica') != "") {
                echo "<footer>";
                echo $this->Html->tag('span', 'Referências:');
                echo $this->fetch('referencia_bibliografica');
                echo "</footer>";
            }
            ?>	
            <?php echo $this->fetch('footer'); ?>

        </section>
        <footer class="rodape">
            <p>Desenvolvido com: CakePHP & Bootstrap</p>
        </footer>



        <?php echo $this->Html->script('vendor/bootstrap.min.js') ?>
        <?php echo $this->Html->script('plugins.js') ?>
        <?php echo $this->Html->script('main.js') ?>

        <script>
            var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']];
            (function(d, t) {
                var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
                g.src = ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js';
                s.parentNode.insertBefore(g, s)
            }(document, 'script'));
        </script>
        <!-- Facebook -->
        <div id="fb-root"></div>
        <script>(function(d, s, id) {
                var js, fjs = d.getElementsByTagName(s)[0];
                if (d.getElementById(id))
                    return;
                js = d.createElement(s);
                js.id = id;
                js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1&appId=190937704380506";
                fjs.parentNode.insertBefore(js, fjs);
            }(document, 'script', 'facebook-jssdk'));</script>

    </body>
</html>
